package com.yf.exam.modules.home.controller;

import com.yf.exam.core.api.ApiRest;
import com.yf.exam.modules.exam.dto.request.ExamSaveReqDTO;
import com.yf.exam.modules.exam.entity.ExamRepo;
import com.yf.exam.modules.home.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/home/api/home/home")
public class HomeController {

    @Autowired
    private HomeService homeService;
    @RequestMapping(value = "/subjectList", method = { RequestMethod.GET})
    public Integer subjectList() {
        Integer integer = homeService.subjectList();

        return integer;
    }
}
